<?php

Class indexController Extends baseController {

    public function index() {
        $this->master($this->registry->template->home("", ""));
    }

    public function lienhe(){
        $this->master($this->registry->template->lienhe());
    }

    public function gioithieu(){
        $this->master($this->registry->template->gioithieu());
    }

    public function huongdan(){
        $this->master($this->registry->template->huongdan());
    }

    public function temp(){
        $this->master($this->registry->db->getProvince());
    }

    public function getDistrict(){
        echo $this->registry->db->getManager("otherManager")->getDistrict($_GET['district']) ;
    }

    public function search(){
        $this->master($this->registry->template->home($_POST['province'], $_POST['district']));
    }

}

?>
